from django import http
from django.contrib.auth.mixins import LoginRequiredMixin


class LoginMixin(LoginRequiredMixin):
    def handle_no_permission(self):
        return http.JsonResponse({"code": "400", "errmsg": "没有登录"})
